<?php
include "header.html";
?>
<div class="row" >
<div class="span8" id="category-container">
   <div id="b-container" xmlns:v="http://rdf.data-vocabulary.org/#">
     <ul class="breadcrumb" itemprop="breadcrumb">
       <li class="bcrumb-1" typeof="v:Breadcrumb"><a href="/" title="Home" rel="v:url" property="v:title">Home</a><span class="divider">/</span></li>
       <li class="bcrumb-2" typeof="v:Breadcrumb"><a href="/tags" title="Tags" rel="v:url" property="v:title">Tags</a><span class="divider">/</span></li>
       <li class="bcrumb-3" typeof="v:Breadcrumb"><a href="/tags/<?php echo html_entity_decode($qtitle);?>" title="<?php echo html_entity_decode($qtitle);?>" rel="v:url" property="v:title"><?php echo html_entity_decode($qtitle);?></a></li>
   </ul>
 </div>
  	<?php 
  	for($i=0; $i < count($tags);$i++) {
  	   echo '<div class="well">';
  	   echo preg_replace('/"\/questions\/([0-9]*)\/.*"/i','"/questions/$1.html"',html_entity_decode($h3s[$i]));
  	   echo html_entity_decode($excerpts[$i]);
  	   echo str_replace('/questions/tagged/','/tags/',str_replace('post-tag','label label-info',html_entity_decode($tags[$i])));
  	   echo '</div>';
  	}

  	?>
  

</div>
<div class="span2">
 <?php  echo str_replace(array('/questions/tagged/','post-tag'),array('/tags/','label label-info'),html_entity_decode($related)); ?>  
 </div>
 </div>
<?php
   include "footer.html";
?>
